package DesignPatern.A17_门面模式.A01_基本模式;

/**
 * @Author: Du
 * @Date: 2021/8/3 11:40
 *
 * 门面
 *
 */
public class ModernPostOffice
{
    private ILetterProcess letterProcess = new ILetterProcessImpl();
    private Police police = new Police();
    
    public void sendLetter(String context, String address)
    {
        letterProcess.writeContext(context);
        letterProcess.fillEnvelope(address);
        police.checkLetter(letterProcess);
        letterProcess.letterIntoEnvelope();
        letterProcess.sendLetter();
    }
}
